//
//  Constants.m
//  iFly
//
//  Created by User-10 on 12/6/14.
//  Copyright (c) 2014 TeamDifferent. All rights reserved.
//

#import "Constants.h"

@implementation Constants

+ (SKLabelNode *) createLabelWithFont:(NSString *)font text:(NSString *)text fontColor:(SKColor *)color fontSize:(NSInteger)fontSize {
    SKLabelNode *label = [SKLabelNode labelNodeWithFontNamed:font];
    label.text = text;
    label.fontColor = color;
    label.fontSize = fontSize;
    label.zPosition=1;
    return label;
}
+ (SKSpriteNode *)createSpriteNodeWithImage:(NSString *)imageName andName:(NSString *)nodeName andPosition:(CGPoint)nodePosition andAlpha:(CGFloat)alpha andScale:(CGFloat)scale {
    SKSpriteNode* sprite= [SKSpriteNode spriteNodeWithImageNamed:imageName];
    sprite.name=nodeName;
    sprite.position=nodePosition;
    sprite.alpha=alpha;
    [sprite setScale:scale];
    
    return sprite;
}

@end
